package com.dataseek.iot.sys.service;

import com.dataseek.iot.sys.entity.Tenant;

import java.sql.SQLException;
import java.util.List;

/**
 * @discription:
 * @author: Freya.Yan
 * @date: 2022/3/12
 */
public interface DbService {
    //根据数据库名创建数据库
    public Integer createDb(String dbType, String dataBaseName);

    //初始化数据表
    public Integer createDbTables(String dbType, Tenant tenant) throws SQLException;


    //根据用户查询permission
    public List<String> queryPermissions(String userName);


}
